Hey there.
Welcome back.
Great job on completing this project.
In the background of this lecture, I am playtesting the game to find any potential bugs.
If you encounter any bugs during the playtesting phase of your game, this is a great opportunity for
you to practice your problem solving skills.
To try and fix the bug, make sure you use print statements and breakpoints to your advantage in solving
the bug.
If you aren't able to solve the bug or need more help, make sure you make a Q&A post relating to your
issue.
Or you can also make a forum post inside of our discord server to get scripting assistance.
Now, I only encountered one error when I was playtesting my game, and that came from the property
listener script inside of our zombies.
So if we head to one of the property listener scripts for our zombies, the error occurred on line 24,
where it says attempted to index nil with fine first child, which is a which is occurring right here.
So that means when we index other parts parent, the parent is returning nil.
And I believe I know what's happening.
This is because what is happening is that when a bunch of zombies are dying and their torsos touch the
limb of another zombie that gets destroyed right away, well, the parent of that destroyed limb would
be nil.
And we can't use this function on nil.
Now to avoid that error from popping up inside of our console, we can go ahead and check if other part
dot parent is equal to nil, and if it is, then we're just going to return.
And that's all we need to do to fix that error.
And that was the only error that I encountered when playtesting the game.
If you have other errors, take the time to figure out how to fix them.
And again, if you need help, make sure you make a Q&A post or make a forum post inside of the discord
server, and I'll be sure to help you as fast as I can.
Now make sure you take this property listener script and copy it and paste it into all of your zombies
and get rid of the old property listener script, so we'll paste it in there.
And we can go ahead and go through and delete all of the old ones.
So delete that, delete that, delete that and delete that and delete that.
In the next upcoming lectures, I'm going to show you how to publish your game.
Change things such as the game icon, thumbnail and description, and we'll also take a look at some
of the other statistics that Roblox gives us to monitor our games.
I'll see you in the next lecture.